import time

from selenium import webdriver
from selenium.webdriver.chrome.options import Options

options = Options()
# 放置关闭网页
options.add_experimental_option('detach', True)
# 去掉 Chrome正受到自动测试软件的控制
options.add_experimental_option("excludeSwitches", ['enable-automation'])
driver = webdriver.Chrome(options=options)
driver.get("http://www.baidu.com")

title = driver.title
print(f'title=={title}')

time.sleep(3)
driver.quit()
